<?php

$logger = Zend_Registry::get('LOG');
$logger->log('view veriffichierajax.phtml', Zend_Log::INFO);

$success = "<p class='text-success'>Ok</p>";
$error = "<p class='text-error'>Veuillez vérifier vos droits.</p>";

$config_ini='';
if ( is_writable(dirname(__FILE__) . '/../../../configs/opendcf.ini'))
{
	$config_ini='$("#config_ini").html("'.$success.'");';
} else {
	$config_ini='$("#config_ini").html("'.$error.'");';
}

echo $config_ini;

$php_log='';
if ( is_writable(dirname(__FILE__) . '/../../../php.log'))
{
	$php_log='$("#php_log").html("'.$success.'");';
} else {
	$php_log='$("#php_log").html("'.$error.'");';
}

echo $php_log;